package cn.sciento.resource;


import cn.sciento.resource.permission.PublicPermissionOperationPlugin;
import cn.sciento.swagger.SwaggerConfig;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**

 */
@Configuration
@AutoConfigureBefore({JacksonAutoConfiguration.class})
@AutoConfigureAfter({SwaggerConfig.class})
public class ResourceServerConfig {
    @Bean
    public PublicPermissionOperationPlugin permissionSwaggerOperationPlugin() {
        return new PublicPermissionOperationPlugin();
    }
}
